<?php
require('../vendor/autoload.php');

use BitWasp\Bitcoin\Key\PrivateKeyFactory;

$prv = PrivateKeyFactory::create(true);
echo 'private key => ' . $prv->getHex() . PHP_EOL;
$pub = $prv->getPublicKey();
echo 'public key => ' . $pub->getHex() . PHP_EOL;
$hash = $pub->getPubKeyHash();
echo 'pubkey hash => ' . $hash->getHex() . PHP_EOL;